using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for BaseMasterPage
/// </summary>
public class BaseMasterPage : MasterPage
{
    public new BasePage Page
    {
        get
        {
            if (base.Page is BasePage)
                return base.Page as BasePage;
            else
                throw new ApplicationException(string.Format("Page '{0}' does not inherit from BasePage", base.Page.GetType().ToString()));
        }
    }
}
